<?php

namespace app\common\utils;

class Is
{
    
    public static function mobile($str = '')
    {
        return preg_match("/^1[3456789]\d{9}$/", $str);
    }
    
    public static function amount($value = '')
    {
        return preg_match('/^\d{1,10}(,\d{10})*(\.\d{1,2})?$/', $value) === 1;
    }
    
    
}